package com.hpf.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hpf.domain.WmsSupplier;
import com.hpf.mapper.WmsSupplierMapper;
import com.hpf.service.WmsSupplierService;
import com.ruoyi.common.core.text.Convert;

@Service
public class WmsSupplierServiceImp implements WmsSupplierService {

	@Autowired
	private WmsSupplierMapper wmsSupplierMapper;
	@Override
	public List<WmsSupplier> listWmsSupplier(WmsSupplier wmsSupplier) {
		return wmsSupplierMapper.listWmsSupplier(wmsSupplier);
	}

	@Override
	public int insertWmsSupplier(WmsSupplier wmsSupplier) {
		return wmsSupplierMapper.insertWmsSupplier(wmsSupplier);
	}

	@Override
	public int deleteWmsSupplier(int supplierId) {
		return wmsSupplierMapper.deleteWmsSupplier(supplierId);
	}

	@Override
	public int updateWmsSupplier(WmsSupplier wmsSupplier) {
		return wmsSupplierMapper.updateWmsSupplier(wmsSupplier);
	}

	@Override
	public WmsSupplier getWmsSupplierById(int supplierId) {
		// TODO Auto-generated method stub
		return wmsSupplierMapper.getWmsSupplierById(supplierId);
	}

	@Override
	public int deleteWmsSupplierByIds(String ids) {
		return wmsSupplierMapper.deleteWmsSupplierByIds(Convert.toStrArray(ids));
	}

}
